﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Formboard.Resources;
using System.Xml.Serialization;

namespace Formboard.Request 

{    
    public class AddUserRequest {

        public UserDescription create_user = new UserDescription();

        public AddUserRequest() {}
        public AddUserRequest(User auser)
        {
            create_user.fullname.value  = auser.fullname;
            create_user.screenname.value = auser.screenname;
            create_user.password.value  = auser.password;
        }

        public class UserDescription
        {
            public FieldWithStringValue fullname = new FieldWithStringValue();
            public FieldWithStringValue screenname = new FieldWithStringValue();
            public FieldWithStringValue password = new FieldWithStringValue();

            public class FieldWithStringValue
            {
                [XmlAttribute("value")]
                public String value;
            }
        }
    }
}
